fix world wrap with detectRetina, close #2190, cc @perliedman