You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
There was something about the image buttons I couldn't put my finger on, but now I know. The image is drawn one pxl out on the X axis, 1 pxl over what it should be and so you get a grey line by the image.