Maybe the value: $getdoctor->getColumnVal("pic") is blank?
Is the getdoctor recordset above the code that sets the default value? Please attach the entire page so I can see it in context in order for me to potentially spot issues in the recordset or form.