I'm trying to draw pictures in a canvas. The pics should grow according to the position of the mouse. When i do this I'm getting an "ArrayIndexOutOfBoundsException: Coordinate out of bounds!" in line 51. If i draw a rectangle instead of a picture it works just fine. I'm new to Processing and i think there is something wrong with my class.
Looking forward to some answers and wish u happy coding!