Allow null values for non-resource image paths.