fixed image upload error for ext jpg