call UIGraphicsEndImageContext after img created 

Call UIGraphicsEndImageContext after cachedVisualRepresentation created, recyle graphics context, with out this line memory will leak
Merge pull request #1 from zhanleewo/master

call UIGraphicsEndImageContext after img created