added mode option for thumb nails