The `fn[:-4]` assume a three letter extension for images, but what if a user have `jpeg` images instead of `jpg` images?