Fix image max_length
Merge pull request #118 from arloc/master

Fix image max_length