pub fn prepare_sprites(
    commands: Commands<'_, '_>,
    previous_len: Local<'_, usize>,
    render_device: Res<'_, RenderDevice>,
    render_queue: Res<'_, RenderQueue>,
    sprite_meta: ResMut<'_, SpriteMeta>,
    view_uniforms: Res<'_, ViewUniforms>,
    sprite_pipeline: Res<'_, SpritePipeline>,
    image_bind_groups: ResMut<'_, ImageBindGroups>,
    gpu_images: Res<'_, RenderAssets<Image>>,
    extracted_sprites: Res<'_, ExtractedSprites>,
    phases: Query<'_, '_, &mut RenderPhase<Transparent2d>>,
    events: Res<'_, SpriteAssetEvents>
)