This error is due to a corrupted image.cfg file which is located in the skin folder in your Dragon's Prophet directory.

This can usually be fixed by downloading and replacing the file with the file attached below.

Alternatively you can try replacing the skin folder with the files in the archive below.