Optimized thumbnail upload