get rotating of images correct