Introduce support to rotate the image for any degrees. Currently it can rotate the image on 90, 180 and 20 degrees.