Mantis 6181: Use a DIB to avoid memory issues