Fix image value assignment bug.