reformat for clarity
vote sorting into method for images