Sharing revenge porn will be upgraded to the most serious type of offence in a change to the Online Safety Act.