So, without exception catches and rest stuff my actual code looks like:
typedef std::vector FlatINT32TArr; using PreviewImageT = bg::rgba8_ima