Gold challenge: right now, the script only works with .png files. Adapt it to also work with other extensions.
.png