compress png/jpg files with tinypng's api.