addTrack uses input validation
layerRGBA uses input validation