remove pointless type check

instead of relaying on server sent type, getimagesize()