Fixed incorrect behavior on center and zoom options

@jbeezley Could you please have a look at this branch. it fixes #152 . Also, I could your help adding a test for it.