optimaze image pass 2