The optimization tool is not an easy button, you should take time to understand what its doing, as it is more efficient then doing all the optimizations your self but using without forethought can cause problems, I've done that as well. Take snapshots in building your images so you can easily fall back if something doesn't work correctly.