make repl work
fixing code
automatically create image