conditionally render embedded imgur gallery