Added rest endpoint for uploading/retrieving images