Calculate aspect ratios and dimensions of photos/images