enhance image rotation utility