Fixed a bug with a getimagesize()