-modified image, changed few function call orders.