Optimized drawing order for SPIP