Added checking whether background image exists.