Workaround for getImageMatrix not returning correct matrix for non-rendered images