Add image upload funtion.