image rotation in JPEG sucks