adding code for uploading image