Add #aspect_ratio helper method

This pull requests adds a method for calculating an image's aspect ratio, which simply returns the image's width divided by its height.