modifies prefetching code using Image object
changes i counter to 1-based