FIXED: Sort and delete images