Thank you for posting.
I have observed your comments but I have not been able to understand them completely. What I have figured out of this is that you want to create thumbnail of the shape. If this is the case then I request you to please visit this documentation link for your kind reference. If your requirements are different, then I request you to please explain a little, with the help of some screenshots or a bit detailed description so that we may proceed further to help you out.