Thumbnail support

Added thumbnail support which works across all modern browsers