Add support for magic /img/foo URLs.