Fix thumbnail retrieval for image Media.