integrate image uploading