UIView category to create a view snapshot