Fix for images that are the same size as cell boundaries.