You must have all the needed files in the same directory, then you must CD into that said directory before you make the final image.