added Animation inserting and allowed underlay image to have non-power-of-two dimensions