Fix screenshot resizing