Fixes a crash in QQuickImageParticle