Fix JS logic to calculate width from image and halve it. Remove console.logs