Fixed image adding/sorting