Fixed a file path issue for writing image files. Added build.xml.