render code seperated
small reorganization and adding img directory