ENH: add option to scale the images