Implemented image uploading.