Enabled 2D images as input in CustomGenerator