script for thumbnailing and uploading blog pictures, plus generating html for them
added variable for web root