Fixed photo square in IE and prevented <img> tag from loading if json structure is empty