ASP.NET automatically registers itself as the handler of ASHX resources. You can save yourself the editing of the metabase if you choose this extension for your custom handlers.
The Java 2D API offers several powerful facilities to perform image processing. Using the built-in BufferedImageOp classes, you can write your own custom filters very quickly