fix tiled read for reading tiles into partial blocks in image

Sorry, previous pull request was based against the 2.4 branch not master. I deleted the previous request and am resubmitting.