Add support for uploading images

implement issue #7