Fix the viewer blacks rectangle when zooming/panning