views.upload: make mapscript optional

Just don't create the images if no mapscript is available...