fix jpeg thumbnail bug
treat 1mb problem