quick fix for pixel out of range
Merge pull request #36 from guanlun/master

quick fix for pixel out of range