first attempt to add image upload feature (not working yet