semi-working photo retrieval