Added image uploading mechanism