gamma on resize fixed (#322)
minor changes