I see @Rincewind and by keeping track of the only think i could think of was to create an array var savedDrawings: [CGContext] = [] as a storing method and use it inside of my saveCanvas function like this: savedDrawings.append(savedImage as! CGContext) but that would crash my app showing Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) error. Do you have any suggestions for other methods to keep track of the drawings?