Added image uploading functionality