added basic saving functionality and text overlay