Better look for image cutting and save/restore state