resize and optimize screenshot