fix tiled read for reading tiles into partial blocks in image

fixes issue3472, identical to pull request on master