fix check image (reason:: get_header, getimagesize not working after update ubuntu 13.10)