A simple javascript function to condition all img elements and apply fall back attributes for width, height and alt