Image editor initial code.