Fixed a few small errors in the imaging package.