add max_length to picture plugins