Create appropriate thumbnail based on mime_type