Fixed screenshot resizing for Firefox