Use 'y#' instead of 's#' in write_rgba of the agg backend. Fixes #1891.