Added API support for uploading images

Change-Id: I8e8311bbb6dc781d63228188ca4d70bf8693d3c0