Speedup image pyramid generation