Fix NPE when resetting background image