CGE2: Rework loading of sprites from file.

Now it satisfies the needs described in the last commit's TODO comment.