Creating a ruby file to sort pictures via resolution