Mod img_resize for scaling

Suggested modification to allow function img_resize to scale images if width or height are not set.