getimgsizefromstring fix