auto downscaling bitmap to thumbnail