Added subsampling options when loading an image from disk.