When using images in PHP, what are some common mistakes to avoid in order to maintain proper alignment and layout?

One common mistake when using images in PHP is not specifying the correct alignment or layout properties, which can result in images appearing misaligned or disrupting the overall design of the page. To maintain proper alignment and layout, it is important to use CSS styles to control the positioning of images within the HTML structure.

echo '<img src="image.jpg" style="display: block; margin: 0 auto;">';