compress first 10 images handle missing images