enhance the process to upload images