fix bug which caused bgimages to appear semi-transparent