Extend QImage class