discard images with wrong size