Made image numbers 0-based