add maximage and depedent lib