Use -drawWithRect:options:attributes:context: and -boundingRectWithSize:options:attributes:context: when they are available. Fixes rendering under iOS7 with 64-bit without breaking backwards compatibility.