[Cairo] Canvas putImageData is not working as expected