getimagesize mask to avoid error