Fix imgdiag page counting

Both page_idx and previous_page_idx used to be initialized with 0, which lead to the first page being skipped in the loop

Test: m imgdiag
Change-Id: I066648e5b23ecb9d7a4eb6d91fef8febb75510a6
1 file changed