Check system version before using +imageWithSize:flipped:drawingHandler: