liblbx: Add a hard check for image leadin versus frame count.