MATLAB script that converts cubic images into an equirectangular representation