addImage: Detect PNG format from raw data - related to #291