temporary fix for image rotation