Though I couldn't find the solution, it seems that it is image related. I typed "cannot allocate DIB handle" in Google and the relevant information seems to be problems with images. Sorry I couldn't be of more help.