I'm not thrilled with this function name either.. perhaps _replace_image_with_placeholder() ?