Introduce paintSolidColorImageMask command to handle 1x1 solid image 

Fixes #4436