Add functionality for uploading images