Remove permissions changes

Will be obsolete when `optimize_image!` is rewritten.