Altered api to work with base64 string images