image fill fix for Qt 4.7 compatibility