added several new functions

... but did not debug image placement successfully :/