fixed getting images from api call.