Properly avoid Core Graphics warnings when creating CGBitmapContexts