Fix images not being optimized