Added an automatic image rotation tool