add image rotation to helper file