Forgot to move serialize functions for png to Base

The API was failing to return an image when called with the Accepts
header, because it couldn't find the serialize callback, which was left
behind in the root controller. Moving it into the Base controller fixed
the problem.