fixed screenshot width and height issues