Image processing functions that are a dependency for many of my experiements. Use with caution ...needs work.