Did you try var_dump on the array_merge & avatar parameters? That would tell you if the variables are what you expect.
Anyway – it looks like you have the parameter order wrong.
You are using
custom_comment( $comment, $depth, $args )
but it should be
custom_comment( $comment, $args, $depth )
Hope that helps