finished uplpading and resizing images