Optimize doc images with trimage