Removed deprecated syntax

Removed warnings
Fixed several bugs when painting the background picture in the Restore interface