Move max coordinates logic inside BitmapEditor

It'll increase cohesion.