resize and optimise screenshots