Implemented save selected area.
Fixed all bugs found.