Add image optimization before distribution