Capturing takes into account memory alignement through pitch variable now (800x600 works now).