Fixed bug where physical height couldn't be calculated from pixel width, density, and ratio