Minor fixes

minor ties like the inSampeSize of image reduced a little bit