Guard against NULL images being created.