Change image resolution if it is > (1000, 1000)