Utilities for dealing with images.