check disable_functions
use getimagesize()