#391022: Now uses the path settings from the imagefield. Added documentation. Refactored most of the code to behave more like the 6.x version.