add thumbnail generation and add some randomness into jpeg quality