compressing background image