flipped background image using Java to get smooth tiling