feat($scaling): check blob's type attr before reading it #1139

Don't attempt to read the header of every file - just file's that are supported images per the blob's type attr.