In 1.5, resources can no longer get request parameters by calling getParameters() but instead get an instance of Attributes. Unfortunately RenderedDynamicImageResponse hides this from its subclasses, it never gets passed on.
I propose to create an additional render method that gets PageParameters in addition to Graphics2D. The default implementation would just call the old render method, so there are no compatibility issues. Additionally, the old method could be deprecated.