Python module and command-line utilities for manipulating small stamp images in astronomical FITS files