Fixes #421 - adds correct mark-up for image optimisation