Imgcutting: fix canvas resizing

Signed-off-by: Jerome Flesch <jflesch@gmail.com>