Only make image if necessary.