Plurk: rotation for image algorithm

Really need to refactor this stuff.