-- added create-sampler, width, height functions