functionality to upload an image

functionality to upload an image and bug fixes