Add image upload function.