Better background image check

Fixes #104