fixed complex image ordering