This is extremely unoptimized, but it does successfully load "folder32.png" so it must be at least somewhat correct. :^)