fixed resize bug with PIL. Added "loop" effect. Fixed save_frame.
Added GIF export.