The problem only occurs when the images don't exist... file_exists returns TRUE when it should return FALSE.
What I need to do is limit the size of the image if it larger than a certain size. So, to do that I'm using what you showed me before... getimagesize. But, if that doesn't find the...