implemented conversion between armadillo and QImage