updated img_box snippet