beginn to rewrite js
start image lib