VE-362: only display captions if not type frameless or none

https://wikia-inc.atlassian.net/browse/VE-362

This mirrors the behavior of MWBlockImageNode, not sure why it wasn't there already. The unit tests will need to be updated, but that will have to be done in the test refactor branch.