Adding a method to smoothly scale down an image