Folding boxes updates sprites properly

Fixed #1119