Changed to share code for parsing preserveAspectRatio.