fixed bug with background images not displaying correctly