fix #176 (imagesc flipping bug)