LinearImage leaks memory if assigned to itself, this ensures the old LinearImage::SharedReference object will be deleted first
LinearImage leaks memory if assigned to itself, this ensures the old LinearImage::SharedReference object will be deleted first