You have to use Attachments, which is only available in API 3. See [previous question][1] here. [1]: https://civicrm.stackexchange.com/questions/28754/get-url-of-custom-image-field