octave code compiles and made python "createImage" better to use