fixed CB splitting at image borders