petpreproc bug fix

Fixed problems with generating resolution normalized images and reset
the petid value