Added support for background color based on image pattern