Added base code for uploading images