Fixed bugin promoting image to dataset that overwrite os with type.