migrate DOM images loader to phetcommon