Calculate dimensions and aspect ratio

pixels
pixels
pixels
pixels