Initial versions of image processing code.