Solved the hell about the boxes and how them are acquired. Simplified goes by making them agnostic the image size.