Added the scaling and the saving the bitmap to file