[Feature] Add common vtil functions and refine center image code