Rename pictures and add ajax to store