Now corrctly writes the image files but the bounding boxes are hard coded.