Added support to upload images.