Fix for unordered dict bug in image tests