Removing dependence on QRImageWidget