try to compact images