Use Try/Except to catch errors related to image uploading