remove useless require datamain
Fix global images variables