Make sure to refresh canvas when layer's CRS is changed
Move triggerRepaint() to QgsMapLayer, use it instead of deprecated clearCacheImage()