refactored flip/rotate methods and actions...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>