added option preserveDrawingBuffer: true, needed to save canvas content