Use local path for getimagesize().