Begin factoring out image processing code into its own namespace.