Added the thumbnail creation