fixed build issues for requirejs, images