I’m also seeing the same error. I went Googling for anyone else who might have solved this. Seems to be almost 1700 results for sites that are throwing the exact same error message. So we’re not alone, and it’s not just our specific setup.
@dinhtungdu Found this thread via Google, facing same issue of wanting $args support. Can confirm that fix labeled 39 worked for me. At least in regard to adding more classes to the image. I haven’t tested all possible $args. Note – this assumes prior parameters $size, $default, and $alt are also present in the function call. Thanks.