How to use a PNG for a sprite costume?

I am remixing a project, and I want to replace a previous PNG costume of a sprite with another. How do I do so?

Just drag the png into the costumes tab to import it. Remove the original costume, and set the name of the new costume to the name of the old costume.

by importing it at file -> import or by dragging and dropping it