Seperated main from bitmap