fix onlyFirstNumImages limitation