Swap color range and support for background images