prevent user not choose image when user create file.