fixed background image size calculation