Call after paint image
typedef AfterPaintImage = void Function( Canvas canvas, Rect rect, ui.Image image, Paint paint);