Better approach to building image uris