updated aspect ratio parsing to use the original width & height values specified in the DOM