Fix missing div closing tags for uploaded images.