fixed potential crash source (no picture selected)