layed out groundwork for image upload