FIX bug #832 + testcase
Merge pull request #938 from sciunto/draw

Ellipse should not return coordinates outside of the image (closes #832)