Fix wrong image rotation