add upload image funtion