added image uploading capabilities