fixed grayscale and sepia bug