code clean up
fixed thumb-size bug