buaazp: 1.fixed mk_dirs bug; 2.remove unsafe sprintf; 3.return compressed img for none arg requests.