Transform features and bug fixes

- Transform features work much better now
- Cleaner code
- Improved index.html demo with webcam and transformations