Fix bug in the display of pins without image