Factor out image urls