Element is positioned before images loaded

This solution is based on mconventi's solution in passy/angular-masonry#22