frontend: readpng: fix width/height confusion