When using 'testimg.bmp' from libjpeg sources the whole picture comes
sheared. There are no problems with other test images in different
format from the same place.
This does seem to be a library question as 'xsri' does not have any
problems. Also 'xv' shows all images correct.
This is a bug in imlib. The code in the BMP loader for imlib is
rather inpenetrable. If someone came up with a patch, we'd
apply it but otherwise, you'll probably just need to use one
of the other image loaders you mention that work.
(The gdk-pixbuf library that will eventually replace imlib does
not exhibit this bug.)