Utilities for image manipulation.