loading and scaling a bitmap