memory leak fix and movement flipping
animation tweak and new Image constructor for animated images