freeimage bomb trying to upconvert grayscales to 24 bit