got image retrieval working