remove obsolete dependencies
minor doc and comments changes
code formatting
added resizing support for internal images