Fix bug where source image wasn't used in scalar image filling.