Block error: "Call to a member function resize() on null" in block type: "media_regular"