support passing array as dimensions in enqueue_*_image functions
correct default value of region