improved layout and loading of bitmap