Fixed so that images & documents uses the GetThumbnailUrl
Added new class for handling thumbnail resources.
Optimized thumbnail generation for non-image media.