added image rotation feature