Error in Bounding Box and drawing its outline

A post was merged into an existing topic: How to draw bounding box of sprite with some color