if the error happens on image loading/creation: set warn_level to 0, in theory it surpresses all error messages.
if the error message happens on image manipulation: you can get the image format by bmap_lock and use bmap_to_format to convert them to a suitable format, like 888 or 8888 from dds for pixel manipulations.