fixed a bug in the image uploader's get_file_name and using it now in view