Used <a> and target=_blank to open images in new tab or window
Used display:block with important flag to show intermediate animation states of ng-hide-add ng-hide-remove