some debug prints
adjust animation filename
rewrote image handling and dumping. palettes should finally work properly