>Have you tried putting the images themselves as seperate files in the exe directory?
Well, if I do this, I'll have to ship those files as separate and they will be added into the production directory. I would prefer all them to be encapsulated within the EXE. However, if I don't have any choice, I'll have to opt for that option. What I don't understand is that it gives that error on a few lines only. However, some similar lines don't show any error. I'll keep trying to find the pattern of that and try to find a workaround.