Error checking on image uploader