Fix image max_length