How to get image attribute (height, width, alt, title) when knowning image src.