Add panFill() exception handling