Fixed bug in image scaling - reset bounds of image after each processing