fixed render error of very short images