Added image retrieval to API wrapper