add two APIs that is compatible with PreloadJS