Changed imageprocessing to work as a function instead of a topic