Java code to make PicMovie