Fix issue with image not embedded correctly - CR after 999positions, #50, #51, 52