use tempnam() to create unique filename, remove mapfile afetr use
fix variable scope
do not use tempnam, since the extension can't be set, improve code readability, check symbol.iconsize
fix iconsize in test dataset
be careful with user data
remove symbols depending on resources not provided by base install
quote more parameters
check if any error was generated by mapserver while generating the image