http://imleeo.com/java/struts2-flashfileupload-fileupload-and-generate-thumbnails-and-add-watermarks.html