Added a 'shrink' option to scale image