Add image upload function

Hey,
Just add a image upload function.
Please merge it to the master.
Thanks, Asaf