Implemented rotating function to image resizor.

-Rotate button with its function
-Optimalized code
-TODO fix bug in chrome with loading picture