Default Problem with camera on AOSP rom.

Hi, I am using now Sense 5 rom. I had problem with green tint while using camera with flash light ( like this ). I found fix and now is OK, but I want to use AOSP roms ( Like CM 11, or SlimKat ). This fix is only for Sense 5 roms, On AOSP roms I have the green tint too How to get goot photos on non sense roms? Any ideas? Sorry for my bad English.