added json implementation to image boudaries