if you resize a photo with a "pp_expand" button and you change picture with a next or previous buttons, this new photo is not resized but "pp_expand" button is on "pp_contract" position.
If you want resize picture, we have to click twice. One click to change "pp_contract" to "pp_expand" and after an other click on "pp_expand" button.