set view size depend on bitmap size