Replace Core Graphics with UIKit