fixed -main function and forest->image