fix broken pictures.js