Bugfix sorting images