Add image upload function