fixed reversed photo order bug