Added image rotation.