Maybe all images on your website need your company logo or maybe you need to give author attribution. This javascript allows you to add things on the fly leaving your image clean on the server.