fixed bug for elements with no background images