adding a thumbnail generating script