fixed thumbnail creation for shared code items