resize and optimize logo