Optimize font sample and thumb image storage