added compatibility for bigger background images