Handling image URL lookups 'tidierly'