display colored gradients over a grayscale image
minor code cleanup