added back canvas to image conversion

Signed-off-by: tanji <nicholastanjerome@gmail.com>