Ugly, but working, even for images.