No check for file size if it matches width*height*numBytes/channel*channels?