Some preliminary support for cropping, resizing and padding.

- Added quick little test interface (html-based).