Fixed libpng warnings: "libpng warning: Duplicate iCCP chunk"
Fixed IO errors as a result of trying to read from inexistent files.
We can ignore the inexistent files in this case as default values are substituted for them elsewhere.
Fixed painter errors as a result of trying to use dimensions of 0x#.
I suspect there are more places where this needs to get fixed. The cause of the issue seems to be that mScreenWidth becomes 0 and is then used in calculations - need to work out why.
Removed a few unnecessary debug statements.