only renames figures if not already renamed
changes indentation to 4 spaces