add the ability to specify pan area