if imageurl is null (ie. not provided) preview src will not be set