Refine image