Fixed #4670: Null callback check added in Canvas addImage function