Add upload thumbnail functionality.