Today, when writing a function that opens an image, adds a simple text on the top corner and streams the resulting image to the client I noticed that the original image used as template couldn't be renamed or deleted after the code ran for the first time and for as long as the web application remained running. Restarting the web application makes the problem to go away until of course the offending code runs again.