int tileWidth = image.getWidth(me);
Rectangle rb = new Rectangle(0, 0, 1, 1);
me.getBounds(rb);
Insets ri = new Insets(0, 0, 0, 0);
Insets riv = me.getInsets(ri);
rb.translate(riv.left, riv.top);
rb.width -= (riv.left + riv.right);
rb.height -= (riv.top + riv.bottom);
Shape ccache = g.getClip();
g.clipRect(rb.x, rb.y, rb.width, rb.height);
int xp, yp;