added nearest-neighbor class for rendering small or pixilated GIFs