Re-factor ng-if statement to fix feed photo display