added code for making image smaller
setting boolean value to false