Added fixed(2) to check of aspect ratio to round the value to 2 decimal places.