filters out images with bad aspect ratios