Fixed bug if the image loaded is less than or equal to 1