Grayscale processor for Paperclip gem