Allow custom target when loading image2D