add readBMPFile': use next, getXY and setXY