designing jpeg pyramid -> caffe copying stuff