generate thumbnail for screenshot