finalized image processing