implement beginnins of image upload functionality