all: simplify API (to match image/{png,jpeg}.Encode/Decode)