Added upload image functionality