fixed y-axis of writeImage output