Clean up and organize imports.
Add image auto rotate beta fearure.