flash choose encode type and jpeg quality