I don't have much experience with shrimp, so this is just a hunch. Have you tried to put your pdf.text instructions after the frame with the image limit?
pdf.bounding_box([0,pdf.bounds.top - 50], :width => pdf.bounds.width, :height => pdf.bounds.height-50) do
source share