Working version of image processing.