Just changing the location of the getImageSize() function.