cairo image crash debugging