FIX memory corruption in makeobj; update png info before using it;
allocate only as much memory as needed

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@6768 8aca7d54-2c30-db11-9de9-000461428c89