Adjusting markup for images