Fix bug, in loadImage, if useCredentials is specified, then allowCrossOrigin is forced