It will handle any Image size as square so that no informations get lost.
Examples 4 Times rotate_right then 4 times rotate_left
The new version with resize