might fix getimagesize error