fix issue 11 (resize on maximized), add image scale and fit helper class