fix image savinng, root dir