Safe and functional of image upload class with PHP.