addImage: Detect PNG format from raw data - related to #291
addImage: detect png format from img.src - related to #291