call UIGraphicsEndImageContext after img created

Call UIGraphicsEndImageContext after cachedVisualRepresentation created, recyle graphics context, with out this line memory will leak