Attempt to implement As rigid as possible image manipulation algorithm on modern android