added ability to add animations to img element when in view