I Encrypted an image by using AES algorithm. Encryption and Decryption works well. Now the thumbnail of the image is the default image.

But I want something that looks useful for the user. like this image.

I have searched a lot but I can find only the quicklook for the document based applications. How can I add thumbnail for jpeg, png or tiff images ?
I assume you know the path to the file when you create it and you have the icon images in your project, so then just use the NSWorkspace method setIcon:forFile:options:.