Fixed leak generated by calling UIGraphicsEndImageContext().