Working code of libsvm Wrapper on Images