benchmark on masking image using canvas