add width and height attributes to <img> placeholder