fixed issue resizing images on the simulator