Reverted Fixed bug 'CGContextTranslateCTM: invalid context 0x0'