check if getimagesizefromstring is a function