Remove superfluous call
Fix detection of background images
Remove pear workaround that is no longer needed