Images are stored in two different directories, as full size and thumbnail.
In addition specific information relating to the file is stored in the database.
Again, if you don't understand exactly what needs to be changed, I would recommend against that approach.
Simply edit the post, delete the existing attachment and upload a new one.