index images only if present