Major update of all image processing stuff, not complete