Fix some bugs with image:draw(...), when the transform contains null elements.