Added difference images, as well as efficient frame vectors (that are properly allocated and won't crash)