awesome script to trim and sort images based on resolution