Implemented drawing BoxComponent