implement Picture.js
add basic functions