partially working.  Need to clean up the quartz code to persist image or retain layer