[Layered Image] Fixed issue with saving state