Fix issue with screenshot resolution and count scalebar placement